<style>
    body{
        background-color: #f9f9f9;
    }
    .xh-form .btn{
        margin-right: 0px;
    }
    .textbox-text .textbox-prompt{
        color: white;
    }
    .form-control[readonly]{
        background-color: white;
    }
    .tree-folder{
        clear: both;
        background: none;
    }
    .tree-folder-open{
        clear: both;
        background: none;
    }
    .fa{
        margin-top: 3px;
    }
    .tree-file{
        clear: both;
        background: none;
    }
    .combo{
        border-radius:4px
    }
    .xh-form tr>td>label {
        float: right;
        margin-right: 10px;
    }
    .fa-manager-color{
        color:#0066cc;
    }
</style>
<script>
    var noticeInfo={{ notice }};
    {{ check }}
</script>
<form id="xh_form" class="xh-form"  action="/short/manage/saveShort" method="post"   enctype="multipart/form-data" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%">
              <tr>
                        <td><label>名称</label></td>
                        <td> <input type="text"  name="sName" must="true"  value="{{data['sName']}}"  maxlength="8"></td>
            </tr>
            <tr>
                <td style="width: 75px;"><label>图标地址</label></td>
                <td style="width: 400px;">
                    <input type="text"  name="logo"  value="{{data['sLogo']}}">
                    <input  name="iNoId" type="hidden"  value="{{data['iId']}}" >
                    <input  type="hidden"  name="iNoType" value="1" >
                    <input  name="sNoticeIds" type="hidden">
                </td>
                 <td><label>是否默认</label></td>
                    <td>
                        <select name="public" id="public" >
                            <option value="1" <?php if($data['iDefault']=='1'){echo 'selected';}  ?>>是</option>
                            <option value="2" <?php if($data['iDefault']=='2'){echo 'selected';}  ?>>否</option>
                        </select>
                    </td>
            </tr>
             <tr>
                    <td><label>选择图标</label></td>
                    <td>  <input type='file' id='file_cover' name="file_cover" accept="image/*"></td>
              </tr>

            <tr id='user'>
              <td style="width: 75px;"><label>权限标签</label></td>
                 <td> <input type="text"  name="sTag" must="true" value="{{data['sTag']}}" <?php if($data['iId']){echo 'readonly';}  ?> ></td>
            </tr>
            <tr>
                <td><label>链接地址</label></td>
                <td colspan="3"> <input type="text"  name="vUrl" must="true" value="{{data['vUrl']}}"></td>
            </tr>

            <tr>
                <td><label>打开方式</label></td>
                <td>
                    <select name="iopenMode">
                            <option value="1" <?php if($data['iOpenMode']=='1'){echo 'selected';}  ?>>弹窗</option>
                            <option value="2" <?php if($data['iOpenMode']=='2'){echo 'selected';}  ?>>页签</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>所属模块</label></td>
                <td> <input type="text"  name="sModel" must="true" value="{{data['sModel']}}"></td>
            </tr>
        </table>
    </div>
</form>
